<?php
include("../service/serviceService.php");

$titleVn = $_POST["titleVn"];
$contentVn = $_POST["contentVn"];
$titleEn = $_POST["titleEn"];
$contentEn = $_POST["contentEn"];
$serviceId = $_GET["id"];
if(editService($serviceId, $titleVn, $titleEn, $contentVn, $contentEn)){
	Header("Location: ../admin/service-detail.php?id=$serviceId&msg=ok");
} else {
	Header("Location: ../admin/service-detail.php?id=$serviceId&msg=no");
}
?>